home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / GRAPHICS / RAYTRACING / POVRAY-2.2 / SCENES / level2 / WTORUS < prev   
Text File  |  1993-09-28  |  2KB  |  69 lines

  1. // Persistence Of Vision raytracer version 2.0 sample file.
  2.  
  3. // A single wooden torus
  4. // Illustrates what is possible with POV-Raywood textures.
  5. // File by Dan Farmer Jan 1992
  6.  
  7. #include "shapes.inc"
  8. #include "colors.inc"
  9. #include "textures.inc"
  10.  
  11. #declare Torus = torus { 7.0, 3.0 }
  12.  
  13. // Wooden torus
  14. object { Torus
  15.    // Bottom layer texture.  Uses a "stretched" bozo for fine porous grain
  16.    texture {
  17.       pigment {
  18.          bozo
  19.          color_map {
  20.             [0.0 0.4 color BakersChoc  color BakersChoc ]
  21.             [0.4 1.01 color Tan color Tan]
  22.          }
  23.          scale <4, 0.05, 0.05>
  24.       }
  25.    }
  26.  
  27.    // Overlaying ring grain texture
  28.    texture {
  29.       finish {
  30.          phong 1
  31.          phong_size 100
  32.          brilliance 3
  33.          ambient 0.2
  34.          diffuse 0.8
  35.       }
  36.       pigment {
  37.          wood
  38.          turbulence 0.025
  39.  
  40.          color_map {
  41.             [0.0 0.15 color SemiSweetChoc color CoolCopper ]
  42.             [0.15 0.40 color CoolCopper color Clear ]
  43.             [0.40 0.80 color Clear  color CoolCopper ]
  44.             [0.80 1.01 color CoolCopper color SemiSweetChoc ]
  45.          }
  46.  
  47.          scale <3.5, 1, 1>
  48.          translate -50*y
  49.          rotate 1.5*z
  50.       }
  51.    }
  52. }
  53.  
  54.  
  55. // Main light source
  56. light_source { <-50.0, 100, -80.0> colour White }
  57.  
  58. // Dim side light to fill shadows
  59. light_source { <250.0, 25.0, -100.0> colour DimGray }
  60.  
  61.  
  62. camera {
  63.    location <0.0, 20.0, -15.0>
  64.    direction <0.0, 0.0, 1.0>
  65.    up  <0.0, 1.0, 0.0>
  66.    right <4/3, 0.0, 0.0>
  67.    look_at <0, 0, 0>
  68. }
  69.